package com.example.demo.uploaddata;

import com.alibaba.fastjson.JSON;

import java.io.IOException;
import java.io.InputStream;
import java.util.List;

public class leancloud {
    public static List<PointInfo> getInfosFromJson(InputStream is) throws IOException{
        byte[] buffer = new byte[is.available()];
        is.read(buffer);
        String json = new String(buffer, "utf-8");

        List<PointInfo> list=null;

        list = JSON.parseArray(json,PointInfo.class);
        return list;
    }
}